package com.neusoft.springdemo.mapper;

import java.util.List;

import com.neusoft.springdemo.bean.Food;
import com.neusoft.springdemo.common.ElmException;

/**
 * 
 * @author chens
 *
 */
public interface FoodMapper {

	/**
	 * 查询产品信息
	 * 
	 * @return
	 */
	public List<Food> getList();

	/**
	 * 新增餐品
	 * 
	 * @param food
	 * @return boolean
	 * @throws ElmException
	 */
	boolean add(Food food) throws ElmException;

	/**
	 * 修改
	 * 
	 * @param food
	 * @return boolean
	 * @throws ElmException
	 */
	boolean edit(Food food) throws ElmException;

	/**
	 * 删除
	 * 
	 * @param food
	 * @return boolean
	 * @throws ElmException
	 */
	boolean delete(Food food) throws ElmException;

}
